function T = static_g1_tt(T, y, x, params)
% function T = static_g1_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 55);

T = model_6_IRFs.static_resid_tt(T, y, x, params);

TEFD_fdd_9_1 = jacob_element('int_prod_disp',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(22) = TEFD_fdd_9_1;
TEFD_fdd_9_2 = jacob_element('int_prod_disp',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(23) = TEFD_fdd_9_2;
TEFD_fdd_9_11 = jacob_element('int_prod_disp',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(24) = TEFD_fdd_9_11;
TEFD_fdd_9_13 = jacob_element('int_prod_disp',13,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(25) = TEFD_fdd_9_13;
TEFD_fdd_1_1 = jacob_element('int_profit',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(26) = TEFD_fdd_1_1;
TEFD_fdd_1_2 = jacob_element('int_profit',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(27) = TEFD_fdd_1_2;
TEFD_fdd_1_11 = jacob_element('int_profit',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(28) = TEFD_fdd_1_11;
TEFD_fdd_2_1 = jacob_element('int_money',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(29) = TEFD_fdd_2_1;
TEFD_fdd_2_2 = jacob_element('int_money',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(30) = TEFD_fdd_2_2;
TEFD_fdd_2_11 = jacob_element('int_money',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(31) = TEFD_fdd_2_11;
TEFD_fdd_3_1 = jacob_element('int_liq',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(32) = TEFD_fdd_3_1;
TEFD_fdd_3_2 = jacob_element('int_liq',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(33) = TEFD_fdd_3_2;
TEFD_fdd_3_11 = jacob_element('int_liq',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(34) = TEFD_fdd_3_11;
TEFD_fdd_3_16 = jacob_element('int_liq',16,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(35) = TEFD_fdd_3_16;
T(36) = getPowerDeriv(T(8),(params(3)-1)/params(3),1);
TEFD_fdd_4_1 = jacob_element('int_surplus',1,{y(28)/y(27),1,y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(12),params(4)});
T(37) = TEFD_fdd_4_1;
TEFD_fdd_4_3 = jacob_element('int_surplus',3,{y(28)/y(27),1,y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(12),params(4)});
T(38) = TEFD_fdd_4_3;
TEFD_fdd_4_12 = jacob_element('int_surplus',12,{y(28)/y(27),1,y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(12),params(4)});
T(39) = TEFD_fdd_4_12;
TEFD_fdd_6_1 = jacob_element('int_partial',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(40) = TEFD_fdd_6_1;
TEFD_fdd_6_2 = jacob_element('int_partial',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(41) = TEFD_fdd_6_2;
TEFD_fdd_6_11 = jacob_element('int_partial',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(42) = TEFD_fdd_6_11;
TEFD_fdd_6_16 = jacob_element('int_partial',16,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27)});
T(43) = TEFD_fdd_6_16;
TEFD_fdd_7_1 = jacob_element('int_acquisition',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(44) = TEFD_fdd_7_1;
TEFD_fdd_7_2 = jacob_element('int_acquisition',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(45) = TEFD_fdd_7_2;
TEFD_fdd_7_11 = jacob_element('int_acquisition',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(46) = TEFD_fdd_7_11;
TEFD_fdd_8_1 = jacob_element('int_2nd_price',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4)});
T(47) = TEFD_fdd_8_1;
TEFD_fdd_8_2 = jacob_element('int_2nd_price',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4)});
T(48) = TEFD_fdd_8_2;
TEFD_fdd_8_11 = jacob_element('int_2nd_price',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4)});
T(49) = TEFD_fdd_8_11;
T(50) = (-(1/(y(21)+y(29))-1/(y(21)+y(29))));
T(51) = (-y(28))/(y(27)*y(27));
T(52) = 1/y(27);
TEFD_fdd_0_1 = jacob_element('int_capital',1,{y(39),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(13),params(14)});
T(53) = TEFD_fdd_0_1;
TEFD_fdd_5_1 = jacob_element('average_log_normal',1,{y(40),params(20),params(21)});
T(54) = TEFD_fdd_5_1;
T(55) = y(25)*getPowerDeriv(y(46),1-params(3),1);

end
